package com.bookcity.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: Trioutia
 * @Date: 2022/5/10 - 05 - 10 - 11:48
 * @Description: com.bookcity.pojo
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {    //  用户

    @JSONField(name = "uid")
    private int uid;

    @JSONField(name = "uname")
    private String uname;

    @JSONField(name = "upasswd")
    private String upass;

    @JSONField(name = "portrait")
    private String uavatar;     //  头像

    @JSONField(name = "uemail")
    private String uemail;

    @JSONField(name = "uphone")
    private String contactphone;    //  联系电话

    @JSONField(name = "urole")
    private int role;        //  角色

    private String signatrue;   //  个性签名

    private String ugender;    //  性别

    public User(String s, String password, String phone, int role) {
        this.uname = s;
        this.upass = password;
        this.contactphone = phone;
        this.role = role;
    }

}
